// pages/indexfirst/index.js
Page({
  gotwo(){
    wx.navigateTo({
      url: '/pages/indextwo/index',
    })
  },
  gototab(){
    wx.switchTab({
      url: '/pages/index/index',
    })
  },
  onLoad(parmes){
    console.log('首次渲染触发' , parmes);
  },
  onShow() {
    console.log('首页处于显示状态...')
  },
  onReady() {
    console.log('首页初次渲染完成了...')
  },

  onHide() {
    console.log('首页处于隐藏状态...')
  },

  onUnload() {
    console.log('首页面即将卸载...')
  }
})